<div class="wrapper wrapper-content animated fadeInRight">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">


        <div class="col-xs-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>搜索</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">

                        <div class="table-responsive">
                            <form class="form-search" method="get" action="<?=url('video.video/index')?>" role="form">
                                <table>
                                    <tr>
                                        <td>转发数:<input class="form-control" name="share_num" id="share_num"
                                                       value="<?=$search['share_num']?>" type="text"
                                                       placeholder="请输入转发数" style=" width:200px"/></td>
                                        <td>观看数:<input class="form-control" name="views" id="views"
                                                       value="<?=$search['views']?>" type="text" placeholder="请输入观看数"
                                                       style=" width:200px"/></td>
                                        <td>标题:<input class="form-control" name="title" id="title"
                                                      value="<?=$search['title']?>" type="text" placeholder="请输入标题"
                                                      style=" width:200px"/></td>

                                        <td>
                                            <div class="input-group">
                                                <button type="submit" style="margin-top: 42%"
                                                        class="btn form-control btn-sm btn-primary">
                                                    搜索
                                                </button>
                                            </div>
                                        </td>
                                    </tr>

                                </table>

                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="col-xs-12">
            <div class="ibox-content">
                <div class="row">
                    <div class="tableTools-container">
                        <a title="添加视频管理" href="<?=url('video.video/create')?>" class="btn btn-sm btn-success"><i
                                class=" fa fa-plus"></i>添加视频管理</a>
                        <a mini="list" for="mini_list" title="批量删除视频管理" href="<?=url('video.video/delete')?>"
                           class="btn btn-sm btn-danger"><i class="fa fa-trash"></i>批量删除</a>

                    </div>


                    <div class="table-responsive">

                        <table id="simple-table" class="table table-striped">
                            <thead>
                            <tr>
                                <th class="center">
                                    <label class="pos-rel">
                                        <input type="checkbox" class="ace"/>
                                        <span class="lbl"></span>
                                    </label>
                                </th>
                                <th>ID</th>
                                <th>转发数</th>
                                <th>观看数</th>
                                <th>标题</th>
                                <th>封面</th>
                                <th>连接地址</th>
                                <th>排序</th>

                                <th>操作</th>


                            </tr>
                            </thead>
                            <form id="mini_list">
                                <tbody>
                                <?php foreach($list as $val){ ?>
                                <tr>
                                    <td class="center">
                                        <label class="pos-rel">
                                            <input id="video_id_<?=$val->video_id;?>" name="video_id[]"
                                                   value="<?=$val->video_id;?>" type="checkbox" class="ace"/>
                                            <span class="lbl"></span>
                                        </label>
                                    </td>

                                    <td><?= $val->video_id ?></td>
                                    <td><?=$val->share_num?></td>
                                    <td><?=$val->views?></td>
                                    <td><?=$val->title?></td>
                                    <td><img width="50" src="/attachs/uploads/<?=$val->photo?>"/></td>
                                    <td><textarea><?=$val->link?></textarea></td>
                                    <td><?=$val->orderby?></td>


                                    <td>
                                        <div class="hidden-sm hidden-xs btn-group">
                                            <a title="编辑视频管理"
                                               href="<?=url('video.video/edit','video_id='.$val->video_id)?>"
                                               class="btn btn-xs btn-info"><i class=" fa fa-edit bigger-120"></i>编辑</a>
                                            <a title="删除视频管理" mini="act"
                                               href="<?=url('video.video/delete','video_id='.$val->video_id)?>"
                                               class="btn btn-xs btn-warning"><i
                                                    class="fa fa-trash bigger-120"></i>删除</a>
                                        </div>
                                    </td>
                                </tr>
                                <?php } ?>

                                </tbody>
                            </form>
                        </table>

                        <div>
                            <?php echo $page; ?>
                        </div>
                    </div><!-- /.row -->


                </div><!-- /.main-container -->


            </div>
        </div>
    </div>
</div>
